package serviceInv

import (
	"mxshop/app/mxshop_api/api/internal/data"
	srvInv "mxshop/app/mxshop_api/api/internal/service/inv"
)

type serviceFactory struct {
	data data.DataFactory
}

func (sf *serviceFactory) Inv() srvInv.InvSrv {
	return newInv(sf.data)
}

func NewService(store data.DataFactory) srvInv.InvFactory {
	return &serviceFactory{data: store}
}
